package com.walnut.lom_system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.walnut.lom_system.domain.entity.EmployInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.walnut.lom_system.domain.form.EmployInfoForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.kafka.common.protocol.types.Field;

/**
* @author chenhetao
* @description 针对表【employ_info】的数据库操作Mapper
* @createDate 2022-04-17 00:07:14
* @Entity com.walnut.lom_system.domain.entity.EmployInfo
*/
@Mapper
public interface EmployInfoMapper extends BaseMapper<EmployInfo> {
    /**
     * 列表分页查询，带筛选
     * @param page 分页
     * @param employInfo 查询条件
     * @param order 排序列
     * @param asc 排序方式
     * @return 分页后的内容
     */
    Page<EmployInfo> queryConditionList(Page page, @Param("query") EmployInfo employInfo, @Param("order")String order,@Param("asc")Boolean asc);

    /**
     * 通过构建的记录查找用户
     * @param employInfo 带的条件
     * @return 单个用户
     */
    EmployInfo selectByRecord(@Param("query") EmployInfo employInfo);

}




